package queue;

import java.util.Objects;

/**
 * @author zhaoziqiang
 * @Description:
 * @date 2020/8/20 14:24
 */
public class At {
    private int age;
    private String name;

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        At at = (At)o;
        return age == at.age && Objects.equals(name, at.name);
    }

    @Override
    public int hashCode() {

        return Objects.hash(age, name);
    }
}
